import { IPSAppDEMobWFDynaEditView } from './ipsapp-demob-wfdyna-edit-view';
import { PSAppDEMobWFEditViewImpl } from './psapp-demob-wfedit-view-impl';
import { IPSUIActionGroup } from '../../view/ipsuiaction-group';

export class PSAppDEMobWFDynaEditViewImpl extends PSAppDEMobWFEditViewImpl implements IPSAppDEMobWFDynaEditView {
  protected psuiactiongroups: IPSUIActionGroup[] | null = null;

  getPSUIActionGroups(): IPSUIActionGroup[] | null {
    if (this.psuiactiongroups == null) {
      this.psuiactiongroups = this.fillChildListModel(this.M.getPSUIActionGroups, 'view.IPSUIActionGroup') as IPSUIActionGroup[];
    }
    return this.psuiactiongroups;
  }

  get psUIActionGroups(): IPSUIActionGroup[] | null {
    return this.getPSUIActionGroups();
  }

  findPSUIActionGroup(objKey: any): IPSUIActionGroup | null {
    return this.getPSModel5('view.IPSUIActionGroup', this.getPSUIActionGroups(), objKey) as IPSUIActionGroup;
  }

  get cls(): string {
    return 'PSAppDEMobWFDynaEditViewImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'app.view.IPSAppDEMobWFDynaActionView' || cls == 'app.view.IPSAppDEMobWFDynaEditView' || cls == 'app.view.IPSAppDEWFDynaActionView' || cls == 'app.view.IPSAppDEWFDynaEditView')
      return true;
    return super.instanceof(cls);
  }
}
